Skip to content

Improve syslog pattern matching in test_caclmgrd_syslog#18257

Merged
StormLiangMS merged 1 commit intosonic-net:masterfrom
bachalla:test_cacl
May 16, 2025
Merged

Improve syslog pattern matching in test_caclmgrd_syslog#18257
StormLiangMS merged 1 commit intosonic-net:masterfrom
bachalla:test_cacl

Conversation

@bachalla
Copy link
Copy Markdown
Contributor

@bachalla bachalla commented May 7, 2025

Description of PR
Improve syslog pattern matching in test_caclmgrd_syslog
Summary:

This change addresses the wrong iptables syslog in the output of systemctl caclmgrd status.

** What is the motivation for this PR?**
The motivation is to make the test_caclmgrd_syslog test case pass in a dualtor testbed setup, where it was previously failing due to strict or outdated syslog match conditions.

How did you do it?
Adjusted the regex pattern used in the test case to match updated or slightly varied syslog formats related to caclmgrd, such as those involving iptables or mux updates.

How did you verify/test it?
Ran the test case on a dualtor setup locally and confirmed that the syslog pattern was successfully matched and the test passed.

@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla bot commented May 7, 2025

CLA Signed


The committers listed above are authorized under a signed CLA.

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Copy Markdown
Contributor

@ZhaohuiS ZhaohuiS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@ZhaohuiS
Copy link
Copy Markdown
Contributor

ZhaohuiS commented May 12, 2025

@bachalla Please add the description and what it fixed, and also update these sections:
What is the motivation for this PR?
How did you do it?
How did you verify/test it?

@ZhaohuiS
Copy link
Copy Markdown
Contributor

ZhaohuiS commented May 13, 2025

@bachalla please update the PR title, it's not accurate.
The description also looks confusing to me. Your change is just adjust the match rules to make sure the syslog is present in the output of systemctl status caclmgrd. test_caclmgrd_syslog is just checking if the syslog present or not, it doesn't change any logic for iptables rules.

This is other people's PR , the code change is same, but the title is better and clear #18239

@bachalla bachalla changed the title test_cacl_application_iptablesrules Improve syslog pattern matching in test_caclmgrd_syslog May 13, 2025
@bachalla bachalla requested a review from StormLiangMS May 13, 2025 06:37
@StormLiangMS
Copy link
Copy Markdown
Collaborator

@bachalla should be systemctl, the issue link is incorrect, it is the #18257,
This change addresses the wrong iptables syslog in the output of sysytemctl caclmgrd status.

Copy link
Copy Markdown
Collaborator

@StormLiangMS StormLiangMS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@StormLiangMS StormLiangMS merged commit dd80867 into sonic-net:master May 16, 2025
13 checks passed
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Jul 11, 2025
)

Description of PR
Improve syslog pattern matching in test_caclmgrd_syslog
Summary:

This change addresses the wrong iptables syslog in the output of systemctl caclmgrd status.

** What is the motivation for this PR?**
The motivation is to make the test_caclmgrd_syslog test case pass in a dualtor testbed setup, where it was previously failing due to strict or outdated syslog match conditions.

How did you do it?
Adjusted the regex pattern used in the test case to match updated or slightly varied syslog formats related to caclmgrd, such as those involving iptables or mux updates.

How did you verify/test it?
Ran the test case on a dualtor setup locally and confirmed that the syslog pattern was successfully matched and the test passed.
@mssonicbld
Copy link
Copy Markdown
Collaborator

Cherry-pick PR to 202505: #19542

mssonicbld pushed a commit that referenced this pull request Jul 11, 2025
Description of PR
Improve syslog pattern matching in test_caclmgrd_syslog
Summary:

This change addresses the wrong iptables syslog in the output of systemctl caclmgrd status.

** What is the motivation for this PR?**
The motivation is to make the test_caclmgrd_syslog test case pass in a dualtor testbed setup, where it was previously failing due to strict or outdated syslog match conditions.

How did you do it?
Adjusted the regex pattern used in the test case to match updated or slightly varied syslog formats related to caclmgrd, such as those involving iptables or mux updates.

How did you verify/test it?
Ran the test case on a dualtor setup locally and confirmed that the syslog pattern was successfully matched and the test passed.
opcoder0 pushed a commit to opcoder0/sonic-mgmt that referenced this pull request Dec 8, 2025
)

Description of PR
Improve syslog pattern matching in test_caclmgrd_syslog
Summary:

This change addresses the wrong iptables syslog in the output of systemctl caclmgrd status.

** What is the motivation for this PR?**
The motivation is to make the test_caclmgrd_syslog test case pass in a dualtor testbed setup, where it was previously failing due to strict or outdated syslog match conditions.

How did you do it?
Adjusted the regex pattern used in the test case to match updated or slightly varied syslog formats related to caclmgrd, such as those involving iptables or mux updates.

How did you verify/test it?
Ran the test case on a dualtor setup locally and confirmed that the syslog pattern was successfully matched and the test passed.

Signed-off-by: opcoder0 <110003254+opcoder0@users.noreply.github.com>
AharonMalkin pushed a commit to AharonMalkin/sonic-mgmt that referenced this pull request Dec 16, 2025
)

Description of PR
Improve syslog pattern matching in test_caclmgrd_syslog
Summary:

This change addresses the wrong iptables syslog in the output of systemctl caclmgrd status.

** What is the motivation for this PR?**
The motivation is to make the test_caclmgrd_syslog test case pass in a dualtor testbed setup, where it was previously failing due to strict or outdated syslog match conditions.

How did you do it?
Adjusted the regex pattern used in the test case to match updated or slightly varied syslog formats related to caclmgrd, such as those involving iptables or mux updates.

How did you verify/test it?
Ran the test case on a dualtor setup locally and confirmed that the syslog pattern was successfully matched and the test passed.

Signed-off-by: Aharon Malkin <amalkin@nvidia.com>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Dec 21, 2025
)

Description of PR
Improve syslog pattern matching in test_caclmgrd_syslog
Summary:

This change addresses the wrong iptables syslog in the output of systemctl caclmgrd status.

** What is the motivation for this PR?**
The motivation is to make the test_caclmgrd_syslog test case pass in a dualtor testbed setup, where it was previously failing due to strict or outdated syslog match conditions.

How did you do it?
Adjusted the regex pattern used in the test case to match updated or slightly varied syslog formats related to caclmgrd, such as those involving iptables or mux updates.

How did you verify/test it?
Ran the test case on a dualtor setup locally and confirmed that the syslog pattern was successfully matched and the test passed.

Signed-off-by: Guy Shemesh <gshemesh@nvidia.com>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Jan 26, 2026
)

Description of PR
Improve syslog pattern matching in test_caclmgrd_syslog
Summary:

This change addresses the wrong iptables syslog in the output of systemctl caclmgrd status.

** What is the motivation for this PR?**
The motivation is to make the test_caclmgrd_syslog test case pass in a dualtor testbed setup, where it was previously failing due to strict or outdated syslog match conditions.

How did you do it?
Adjusted the regex pattern used in the test case to match updated or slightly varied syslog formats related to caclmgrd, such as those involving iptables or mux updates.

How did you verify/test it?
Ran the test case on a dualtor setup locally and confirmed that the syslog pattern was successfully matched and the test passed.

Signed-off-by: Guy Shemesh <gshemesh@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants